<template>
  <el-dialog :title="this.$i18n.t('refundOrderDetail.refundPro')"
             :close-on-click-modal="false"
             :visible.sync="visible"
             width="90%">
    <el-form :model="dataForm"
             ref="dataForm"
             @keyup.enter.native="dataFormSubmit()"
             label-width="180px">
      <div class="mod-order-refundOrderInfo">
        <div class="content">
          <div class="order-number">
            <div class="num-cont">
              <el-form-item :label="this.$i18n.t('order.refundId') + ':'">
                <span class="text">{{dataForm.refundSn}}</span>
              </el-form-item>
              <el-form-item>
                <div v-if="dataForm.applyType == 1">
                  <el-steps :active="onlyRefundStepsStatus"
                            align-center
                            :process-status="onlyRefundProcessStatus">
                    <el-step :title="this.$i18n.t('refundOrderDetail.buyerApplyRefund')"></el-step>
                    <el-step :title="this.$i18n.t('refundOrderDetail.MerchantAgreesRefund')"></el-step>
                    <el-step :title="this.$i18n.t('order.refundsuccessfully')"></el-step>
                  </el-steps>
                </div>
                <div v-else>
                  <el-steps :active="stepsStatus"
                            align-center
                            :process-status="processStatus">
                    <el-step :title="this.$i18n.t('refundOrderDetail.BuyerApplyRetPur')"></el-step>
                    <el-step :title="this.$i18n.t('refundOrderDetail.MerchantAgreesRetPur')"></el-step>
                    <el-step :title="this.$i18n.t('refundOrderDetail.buyerDel')"></el-step>
                    <el-step :title="this.$i18n.t('refundOrderDetail.MerchantSuccessfulProcessing')"></el-step>
                    <el-step :title="this.$i18n.t('order.refundsuccessfully')"></el-step>
                  </el-steps>
                </div>
              </el-form-item>
            </div>
          </div>
          <div class="order-state">
            <div class="state-cont">
              <div class="state-title">
                <el-form-item :label="this.$i18n.t('refundOrderDetail.returnType') + ':'">
                  <template slot-scope="scope">
                    <el-tag v-if="dataForm.applyType == 1"
                            size="small"
                            type="warning">{{$t('order.onlyRefund')}}</el-tag>
                    <el-tag v-if="dataForm.applyType == 2"
                            size="small"
                            type="warning">{{$t('order.refundAndMoney')}}</el-tag>
                  </template>
                </el-form-item>
                <el-form-item :label="this.$i18n.t('refundOrderDetail.returnMethod') + ':'">
                  <template slot-scope="scope">
                    <el-tag v-if="dataForm.refundType == 1"
                            size="small"
                            type="warning">{{$t('refundOrderDetail.fullRefund')}}</el-tag>
                    <el-tag v-if="dataForm.refundType == 2"
                            size="small"
                            type="warning">{{$t('refundOrderDetail.sigGoosRefund')}}</el-tag>
                  </template>
                </el-form-item>
                <el-form-item v-if="dataForm.decisionTime && !dataForm.refundTime">
                  <!-- <el-button type="primary"
                             size="small"
                             plain
                             @click="refundRequest(dataForm.refundSn)">发放退款</el-button> -->
                  <!-- <el-button type="primary"
                             size="small"
                             plain
                             @click="refundRevocation(dataForm.refundSn)">撤回上一步</el-button> -->
                </el-form-item>
              </div>

              <div class="order-info">
                <div class="order-details">
                  <div class="detail-title">
                    <img src="~@/assets/img/car.png"
                         alt="">
                    <span class="prompt">{{$t('refundOrderDetail.returnDetails')}}</span>
                  </div>
                  <div class="detail-cont">
                    <div class="detail01">
                      <div class="text-width">
                        <!-- <span class="revise-addr"
                              @click="changeAddr(dataForm.addrOrderId)">
                          <img src="~@/assets/img/revise.png"
                               alt="" />修改地址
                        </span> -->
                        <el-form-item :label="this.$i18n.t('order.number') + ':'">
                          <span>{{dataForm.orderNumber}}</span>
                        </el-form-item>
                        <el-form-item :label="this.$i18n.t('refundOrderDetail.orderActualAmount') + ':'">
                          <span>{{dataForm.orderAmount}}</span>
                        </el-form-item>
                        <el-form-item :label="this.$i18n.t('home.refundAmount') + ':'">
                          <!-- <span>{{dataForm.refundAmount}}</span> -->
                          <span>{{$t('order.monetaryUnit') + (dataForm.refundAmount ? dataForm.refundAmount : 0).toFixed(2)+' + ' + (dataForm.refundScore ? dataForm.refundScore : 0) + ' ' + $t('order.score')}}</span>
                        </el-form-item>
                        <el-form-item :label="this.$i18n.t('order.applicationTime') + ':'">
                          <span>{{dataForm.applyTime}}</span>
                        </el-form-item>
                        <el-form-item :label="this.$i18n.t('refundOrderDetail.refundReason') + ':'">
                          <span>{{dataForm.buyerReason}}</span>
                        </el-form-item>
                        <el-form-item :label="this.$i18n.t('refundOrderDetail.refundInstructions') + ':'"
                                      v-if="dataForm.buyerDesc">
                          <span>{{dataForm.buyerDesc}}</span>
                        </el-form-item>
                        <el-form-item :label="this.$i18n.t('refundOrderDetail.receivingInfo') + ':'"
                                      v-if="dataForm.applyType == 2 &&  dataForm.refundDelivery &&  dataForm.returnMoneySts != -1">
                          <span>{{this.dataForm.refundDelivery.receiverAddr}}&nbsp;{{this.dataForm.refundDelivery.receiverName}}&nbsp;{{this.dataForm.refundDelivery.receiverMobile}}</span>
                        </el-form-item>
                        <!-- <el-form-item label="收货情况:"
                                      v-if="dataForm.applyType == 1 && dataForm.returnMoneySts > 4 ">
                          <div>
                            <el-tag size="small "
                                    v-if="dataForm.isReceiver"
                                    type="warning">已收货</el-tag>
                            <el-tag size="small "
                                    v-else
                                    type="danger">未收货</el-tag>
                          </div>
                        </el-form-item> -->
                      </div>
                    </div>
                  </div>
                  <template v-if="this.dataForm.refundDelivery && this.dataForm.refundDelivery.deyNu">
                    <div class="detail-title">
                      <img src="~@/assets/img/car.png"
                           alt="">
                      <span class="prompt">{{$t('refundOrderDetail.logisticsDetails')}}</span>
                    </div>
                    <div class="detail-cont">
                      <div class="detail01">
                        <div class="text-width">
                          <el-form-item v-if="this.dataForm.refundDelivery && this.dataForm.refundDelivery.deyName"
                                        :label="this.$i18n.t('refundOrderDetail.logisticsName') + ':'">
                            <span>{{this.dataForm.refundDelivery.deyName}}</span>
                          </el-form-item>
                          <el-form-item v-if="this.dataForm.refundDelivery && this.dataForm.refundDelivery.deyNu"
                                        :label="this.$i18n.t('refundOrderDetail.logisticsNumber') + ':'">
                            <span>{{this.dataForm.refundDelivery.deyNu}}</span>
                          </el-form-item>
                          <el-form-item v-if="this.dataForm.refundDelivery && this.dataForm.refundDelivery.senderRemarks"
                                        :label="this.$i18n.t('order.compradorMsg') + ':'">
                            <span>{{this.dataForm.refundDelivery.senderRemarks}}</span>
                          </el-form-item>
                          <el-form-item v-if="this.dataForm.refundDelivery && this.dataForm.refundDelivery.senderMobile"
                                        :label="this.$i18n.t('order.contactTel') + ':'">
                            <span>{{this.dataForm.refundDelivery.senderMobile}}</span>
                          </el-form-item>
                        </div>
                      </div>

                    </div>
                  </template>
                </div>
                <div class="buyers">
                  <div class="detail-title">
                    <img width="18px"
                         height="18px"
                         src="~@/assets/img/buyer.png"
                         alt=""
                         style="margin-right:15px">
                    <el-form-item :label="this.$i18n.t('refundOrderDetail.returnVoucher') + ':'"
                                  style="margin-top:8px"
                                  label-width="auto">
                    </el-form-item>
                  </div>
                  <div class="buyers-info">
                    <imgs-upload style="margin-top: 22px" v-model="dataForm.photoFiles" :disabled="true" :modal="false" :prompt="false"/>
                  </div>
                  <template v-if="this.dataForm.refundDelivery && this.dataForm.refundDelivery.imgs">
                    <div class="detail-title"
                         style="margin-top:40px">
                      <img width="18px"
                           height="18px"
                           src="~@/assets/img/buyer.png"
                           alt=""
                           style="margin-right:15px">
                      <el-form-item :label="this.$i18n.t('refundOrderDetail.Logisticsvoucher') + ':'"
                                    style="margin-top:8px"
                                    label-width="auto">
                      </el-form-item>
                    </div>
                    <div class="buyers-info">
                      <div class="detail02">
                        <div class="refundImg"
                             v-for="(item,index) in refundDeliveryPhotos"
                             :key="index">
                          <el-popover placement="right"
                                      title=""
                                      trigger="click">
                            <img slot="reference"
                                 :src="resourcesUrl + item"
                                 style="height: 150px !important; width: auto !important"
                                 class="showLicense">
                            <img :src="resourcesUrl + item"
                                 style="max-height: 720px;max-width: 720px" />
                          </el-popover>
                        </div>
                      </div>
                    </div>
                  </template>
                </div>
              </div>
              <div class="item-list">
                <el-table :data="dataForm.orderItems"
                          border>
                  <el-table-column prop=""
                                   :label="this.$i18n.t('refundOrderDetail.refundItems')">
                    <template slot-scope="scope">
                      <img :src="resourcesUrl + scope.row.pic"
                           width="100"
                           height="100" />
                      <span>{{scope.row.prodName}}</span>
                    </template>
                  </el-table-column>
                  <el-table-column prop="price"
                                   :label="this.$i18n.t('order.unitPrice')"
                                   width="180"
                                   align="center">
                    <template slot-scope="scope">
                      <span>{{scope.row.price}}</span>
                    </template>
                  </el-table-column>
                  <el-table-column prop="count"
                                   :label="this.$i18n.t('order.quantity')"
                                   width="180"
                                   align="center">
                    <template slot-scope="scope">
                      <span v-if="dataForm.refundType == 1">{{scope.row.prodCount}}</span>
                      <span v-if="dataForm.refundType == 2">{{dataForm.goodsNum}}</span>
                    </template>
                  </el-table-column>
                  <el-table-column prop="productTotalAmount"
                                   :label="this.$i18n.t('order.prodTotalPrice')"
                                   width="180"
                                   align="center">
                    <template slot-scope="scope">
                      <span v-if="dataForm.refundType == 1">{{scope.row.productTotalAmount}}</span>
                      <span v-if="dataForm.refundType == 2">{{bigProductTotalAmount(scope.row.price, dataForm.goodsNum)}}</span>
                    </template>
                  </el-table-column>
                  <el-table-column prop="actualTotal"
                                   :label="this.$i18n.t('order.actualAmount')"
                                   width="180"
                                   align="center">
                    <template slot-scope="scope">
                      <span v-if="dataForm.refundType == 1">{{scope.row.actualTotal}}</span>
                      <span v-if="dataForm.refundType == 2">{{bigActualTotal(scope.row.actualTotal, scope.row.prodCount)}}</span>
                      <el-tag v-if="scope.row.shareReduce > 0"
                              type="danger"
                              size="mini"
                              effect="dark">{{$t('order.preferential')}}</el-tag>
                    </template>
                  </el-table-column>
                  <el-table-column v-if="dataForm.refundType == 2"
                                   prop="productTotalAmount"
                                   :label="this.$i18n.t('home.refundAmount')"
                                   width="180"
                                   align="center">
                    <template slot-scope="scope">
                      <!-- <span>{{dataForm.refundAmount}}</span> -->
                    <span>{{$t('order.monetaryUnit') + (dataForm.refundAmount ? dataForm.refundAmount : 0).toFixed(2)+' + ' + (dataForm.refundScore ? dataForm.refundScore : 0) + $t('order.score')}}</span>
                    </template>
                  </el-table-column>
                </el-table>
              </div>

              <!-- <div v-if="dataForm.returnMoneySts === 1"
                   class="sellerRemark">
                <el-row>
                  <el-col :span="2">
                    <div>申请审批:</div>
                  </el-col>
                  <el-col :span="22">
                    <div>
                      <el-tag size="small"
                              type="warning">等待商家审核</el-tag>
                    </div>
                  </el-col>
                </el-row>
              </div> -->
              <!-- <div v-if="dataForm.shipTime && !dataForm.cancelTime && !dataForm.rejectTime && dataForm.returnMoneySts != 3"
                   class="sellerRemark">
                <el-row>
                  <el-col :span="2">
                    <div>退货申请:</div>
                  </el-col>
                  <el-col :span="22">
                    <div>
                      <el-tag size="small "
                              v-if="isAgreeRefund === 2"
                              type="warning">同意退款</el-tag>
                      <el-tag size="small "
                              v-if="isAgreeRefund === 3"
                              type="warning">拒绝退款</el-tag>
                    </div>
                  </el-col>
                </el-row>
              </div> -->

              <div class="sellerRemark"
                   v-if="dataForm.returnMoneySts == -1">
                <el-row>
                  <el-col :span="2">
                    <div>{{$t('refundOrderDetail.rejectReason')}}：</div>
                  </el-col>
                  <el-col :span="22">
                    <div>
                      <el-input type="textarea"
                                :disabled="true"
                                v-model="dataForm.rejectMessage"
                                :rows="2"></el-input>
                    </div>
                  </el-col>
                </el-row>
              </div>
              <div class="sellerRemark"
                   v-if="dataForm.sellerMsg">
                <el-row>
                  <el-col :span="4">
                    <div>{{$t('order.sellerNote')}}:</div>
                  </el-col>
                  <el-col :span="20">
                    <div>
                      <el-input type="textarea"
                                v-model="dataForm.sellerMsg"
                                :disabled="true"
                                :rows="2"></el-input>
                    </div>
                  </el-col>
                </el-row>
              </div>
            </div>
          </div>

          <div class="order-log">
            <div class="log-title">
              <span>{{$t('refundOrderDetail.refundLog')}}</span>
            </div>
            <div class="log-cont">
              <el-form-item v-if="dataForm.applyTime"
                            label-width="10px">
                <span>{{dataForm.applyTime}} {{$t('refundOrderDetail.waitProcess')}}</span>
              </el-form-item>
              <el-form-item v-if="dataForm.applyType === 2 && dataForm.handelTime"
                            label-width="10px">
                <span>{{dataForm.handelTime}} {{$t('refundOrderDetail.waitingBuyer')}}</span>
              </el-form-item>

              <el-form-item v-if="dataForm.applyType === 1 && dataForm.handelTime"
                            label-width="10px">
                <span>{{dataForm.handelTime}} {{$t('refundOrderDetail.waitRefund')}}</span>
              </el-form-item>
              <el-form-item v-if="dataForm.shipTime"
                            label-width="10px">
                <span>{{dataForm.shipTime}} {{$t('refundOrderDetail.waitsBuyerRec')}}</span>
              </el-form-item>
              <el-form-item v-if="dataForm.receiveTime"
                            label-width="10px">
                <span>{{dataForm.receiveTime}} {{$t('refundOrderDetail.waitMerchantAgree')}}</span>
              </el-form-item>
              <el-form-item v-if="dataForm.decisionTime"
                            label-width="10px">
                <span>{{dataForm.decisionTime}} {{$t('refundOrderDetail.agreeAndWaitRefund')}}</span>
              </el-form-item>
              <el-form-item v-if="dataForm.refundTime"
                            label-width="10px">
                <span>{{dataForm.refundTime}} {{$t('order.refundsuccessfully')}}</span>
              </el-form-item>


              <el-form-item
                v-if="dataForm.handelTime && dataForm.returnMoneySts === -1  && !dataForm.rejectTime"
                label-width="10px"
              >
                <span
                  >{{ dataForm.updateTime }}
                  {{ $t("order.refundClosed") }}</span
                >
              </el-form-item>
              <el-form-item
                v-if="dataForm.returnMoneySts === -1 && dataForm.cancelTime"
                label-width="10px"
              >
                <span
                  >{{ dataForm.cancelTime }} {{ $t("order.refundClosed") }}
                  {{ $t("order.buyerHasWithdrawn") }}</span
                >
              </el-form-item>
              <el-form-item v-if="dataForm.returnMoneySts === 6"
                            label-width="10px">
                <span>{{dataForm.cancelTime}} {{$t('refundOrderDetail.refundClosed')}}</span>
              </el-form-item>
              <el-form-item v-if="dataForm.returnMoneySts == 7"
                            label-width="10px">
                <span>{{dataForm.rejectTime}} {{$t('refundOrderDetail.merchantRejectedAndFailed')}}</span>
              </el-form-item>
                            <el-form-item
                v-if="dataForm.returnMoneySts === -1 && dataForm.rejectTime"
                label-width="10px"
              >
                <span
                  >{{ dataForm.rejectTime }}
                  {{ $t("refundOrderDetail.merchantRejectedAndFailed") }}</span
                >
              </el-form-item>
            </div>
          </div>
        </div>
      </div>
    </el-form>
    <!-- 弹窗, 新增 / 修改 -->
    <add-or-update v-if="addOrUpdateVisible"
                   ref="addOrUpdate"
                   @refreshDataList="refreshChange"></add-or-update>
  </el-dialog>
</template>

<script>
import ImgsUpload from '@/components/imgs-upload'
import AddOrUpdate from './order-addr'
import Big from 'big.js'
export default {
  data () {
    return {
      visible: false,
      addrList: [],
      dataForm: {},
      refundDeliveryPhotos: [],
      receiveMessage: '',
      isAgreeReceiver: '',
      isAgreeRefund: 2,
      isReceiver: 0,
      resourcesUrl: window.SITE_CONFIG.resourcesUrl,
      addOrUpdateVisible: false,
      devyVisible: false,
      refundAddr: '',
      deyNu: '',
      deyName: '',
      senderMobile: '',
      senderRemarks: '',
      refundScore: 0
    }
  },
  components: {
    AddOrUpdate,
    ImgsUpload
  },
  watch: {
    visible: function () {
      if (!this.visible) {
        this.devyVisible = false
        this.addOrUpdateVisible = false
      }
    }
  },
  computed: {
    onlyRefundStepsStatus: function () {
      let index = 0
      if (this.dataForm.handelTime) {
        index++
      }
      if (this.dataForm.cancelTime || this.dataForm.refundTime || this.dataForm.rejectTime || this.dataForm.refundTime || this.dataForm.rejectTime) {
        index++
      }
      return index
    },
    onlyRefundProcessStatus: function () {
      switch (this.dataForm.returnMoneySts) {
        case 1:
        case 2:
          return 'finish'
        case 5:
          return 'success'
        default:
          return 'error'
      }
    },

    stepsStatus: function () {
      let index = 0
      if (this.dataForm.handelTime) {
        index++
      }
      if (this.dataForm.shipTime) {
        index++
      }
      if (this.dataForm.receiveTime) {
        index++
      }
      if (!this.dataForm.receiveTime && this.dataForm.returnMoneySts === 5) {
        index++
      }
      if (this.dataForm.cancelTime || this.dataForm.refundTime || this.dataForm.rejectTime || this.dataForm.refundTime || this.dataForm.rejectTime) {
        index++
      }
      return index
    },
    processStatus: function () {
      switch (this.dataForm.returnMoneySts) {
        case 1:
        case 2:
        case 3:
        case 4:
          return 'finish'
        case 5:
          return 'success'
        default:
          return 'error'
      }
    }

  },
  methods: {
    init (id, shopId) {
      this.dataForm.refundId = id || 0
      this.dataForm.shopId = shopId || 0
      this.visible = true
      this.$nextTick(() => {
        this.$refs['dataForm'].resetFields()
      })
      this.refundDeliveryPhotos = []
      this.receiveMessage = ''
      this.isAgreeRefund = 2
      if (this.dataForm.refundId) {
        this.$http({
          url: this.$http.adornUrl(`/platform/orderRefund/info`),
          method: 'get',
          params: this.$http.adornParams({
            'refundId': this.dataForm.refundId,
            'shopId': this.dataForm.shopId
          })
        }).then(({ data }) => {
          this.dataForm = data
          if (this.dataForm.refundDelivery && this.dataForm.refundDelivery.imgs) {
            this.refundDeliveryPhotos = this.dataForm.refundDelivery.imgs.split(',')
          }
        })
      }
    },

    getDataList () {
      this.$http({
        url: this.$http.adornUrl(`/platform/orderRefund/info/${this.dataForm.refundId}`),
        method: 'get',
        params: this.$http.adornParams()
      }).then(({ data }) => {
        this.dataForm = data
      })
    },
    // 表单提交
    dataFormSubmit () {
    },
    // 修改地址
    changeAddr (val) {
      this.addOrUpdateVisible = true
      this.$nextTick(() => {
        this.$refs.addOrUpdate.init(val)
      })
    },

    // 确认收货
    confirmHandel () {
    },

    /**
     * 加载收货地址模板
     */
    getRefundAddrList () {
      this.$http({
        url: this.$http.adornUrl('/platform/refundAddr/list'),
        method: 'get',
        params: this.$http.adornParams()
      }).then(({ data }) => {
        this.addrList = data
        if (this.dataForm.refundAddrId) {
          let index = this.addrList.findIndex(item => item.refundAddrId === this.dataForm.refundAddrId)
          if (index || index === 0) {
            let refAddr = this.addrList[index]
            this.refundAddr = refAddr.province + refAddr.city + refAddr.area + refAddr.addr
          }
        }
      })
    },

    /**
     * 提交处理
     */
    checkHandel () {
      let tempRefundAddrId = this.isAgreeRefund === 2 ? this.dataForm.refundAddrId : undefined
      this.$http({
        url: this.$http.adornUrl(`/order/refund/process`),
        method: 'put',
        data: this.$http.adornData({
          refundId: this.dataForm.refundId,
          refundSts: this.isAgreeRefund,
          refundSn: this.dataForm.refundSn,
          rejectMessage: this.dataForm.rejectMessage,
          sellerMsg: this.dataForm.sellerMsg,
          refundAddrId: tempRefundAddrId
        })
      }).then(({ data }) => {
        this.$message({
          message: '操作成功',
          type: 'success',
          duration: 1500,
          onClose: () => {
            this.visible = false
            this.$emit('refreshDataList')
          }
        })
      })
    },

    /**
     * 确定退款
     */
    returnMoneyHandle () {
      this.$http({
        url: this.$http.adornUrl(`/order/refund/returnMoney`),
        method: 'put',
        data: this.$http.adornData({
          refundId: this.dataForm.refundId,
          refundSts: this.isAgreeRefund,
          refundSn: this.dataForm.refundSn,
          rejectMessage: this.dataForm.rejectMessage,
          sellerMsg: this.dataForm.sellerMsg,
          isReceiver: this.isReceiver
        })
      }).then(({ data }) => {
        this.$message({
          message: '操作成功',
          type: 'success',
          duration: 1500,
          onClose: () => {
            this.visible = false
            this.$emit('refreshDataList')
          }
        })
      })
    },
    /**
     * 退款请求（发放退款）
     */
    refundRequest (refundSn) {
      this.$http({
        url: this.$http.adornUrl(`/order/refund/refundRequest`),
        method: 'put',
        data: refundSn
      }).then(({ data }) => {
        this.$message({
          message: '操作成功',
          type: 'success',
          duration: 1500,
          onClose: () => {
            this.visible = false
            this.$emit('refreshDataList')
          }
        })
      })
    },
    // /**
    //  * 撤回上一步（返回同意退款前）
    //  */
    // refundRevocation (refundSn) {
    //   this.$http({
    //     url: this.$http.adornUrl(`/order/refund/refundRevocation`),
    //     method: 'put',
    //     data: refundSn
    //   }).then(({ data }) => {
    //     this.$message({
    //       message: '操作成功',
    //       type: 'success',
    //       duration: 1500,
    //       onClose: () => {
    //         this.visible = false
    //         this.$emit('refreshDataList')
    //       }
    //     })
    //   })
    // },

    // 精度运算-乘法
    bigProductTotalAmount: function (a, b) {
      return new Big(a).times(b)
    },
    // 精度运算-除法
    bigActualTotal: function (a, b) {
      if (a == null) {
        return ''
      }
      return new Big(a).div(b).times(this.dataForm.goodsNum)
    }
  }
}
</script>


<style lang="scss" scoped>
.mod-order-refundOrderInfo {
  height: 100%;
  width: 100%;
  font: 14px Arial, "PingFang SC", "Hiragino Sans GB", STHeiti,
    "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  color: #495060;

  .content {
    margin: 0 20px;
  }

  .content .steps {
    margin-top: 50px;
  }

  .order-number .number-text {
    font-weight: bold;
  }

  .order-number .text {
    font-size: 14px;
    color: #8a8a8a;
  }

  .order-state .state-title {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .title-left span {
    font-weight: bold;
  }

  .title-left .text {
    color: red;
  }

  .state-title .title-mid {
    display: flex;
    align-items: center;
  }

  .title-mid img {
    width: 18px;
    height: 18px;
  }

  .title-mid .mid-text {
    color: red;
  }

  .title-mid .text {
    color: #8a8a8a;
  }

  .content .order-state {
    position: relative;
    margin-top: 50px;
    /* border-bottom: 1px solid #e9eaec; */
  }

  .order-state .order-info {
    width: 100%;
    /* border-top: 1px solid #e9eaec; */
    margin: 50px 0;
    display: flex;
  }

  .order-info img {
    width: 18px;
    height: 18px;
    margin-right: 15px;
  }

  .order-info .detail-title {
    height: 50px;
    line-height: 50px;
    display: flex;
    align-items: center;
  }

  .order-info  .detail-title .el-form-item .el-form-item__label {
    text-align: left;
  }

  .order-info .detail-title img {
    height: 18px !important;
    width: 18px !important;
  }

  .order-info .order-details {
    width: 50%;
    border-right: 1px solid #e9eaec;
  }

  .order-info .detail-cont {
    position: relative;
  }

  .detail-cont .detail01 {
    display: flex;
    height: 100%;
    line-height: 25px;
    margin-top: 15px;
  }

  .sellerRemark {
    /* display: flex;
  width: 100%;
  margin-top: 15px;
  margin-bottom: 15px;
  border-bottom: 1px solid #e9eaec; */
    margin-top: 20px;
  }

  .sellerRemark .sellerRemark-title {
    height: 120px;
    line-height: 120px;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    width: 5%;
  }

  .sellerRemark .content {
    height: 120px;
    line-height: 120px;
    float: right;
    margin-bottom: 30px;
    width: 95%;
  }

  .detail01 .text-width {
    width: 100%;
  }

  .detail02 .text-width {
    width: 100%;
  }

  .detail-cont .revise-addr {
    color: #4395ff;
    position: absolute;
    top: 15px;
    right: 0;
    display: flex;
    align-items: center;
    cursor: pointer;
  }

  .order-info .detail-cont {
    border-top: 1px dashed #e9eaec;
    margin: 15px 20px 0 0;
  }

  .order-info .buyers {
    width: 100%;
    margin-left: 20px;
  }

  .buyers .buyers-info {
    border-top: 1px dashed #e9eaec;
    margin-top: 15px;
    position: relative;
  }

  .buyers .detail02 {
    display: flex;
    height: 100%;
    line-height: 25px;
    margin-top: 15px;
  }

  .buyers img {
    width: 100px;
  }

  .buyers .buyers-info .detail02 .refundImg {
    display: flex;
    flex-wrap: wrap;
  }

  .buyers .buyers-info .detail02 .refundImg img {
    width: 150px;
    height: 150px;
  }

  .buyers .revise-remarks {
    color: #4395ff;
    position: absolute;
    top: 15px;
    right: 0;
    display: flex;
    align-items: center;
    cursor: pointer;
  }

  .order-state .item-info {
    padding-left: 70%;
    margin: 25px 0;
  }

  .item-info span {
    margin-bottom: 15px;
    line-height: 30px;
  }

  .item-info .text {
    position: absolute;
    right: 0;
  }

  .item-info .amount {
    font-size: 18px;
    color: red;
  }

  .order-log .log-title {
    margin-top: 20px;
    height: 50px;
    width: 100%;
    line-height: 50px;
    font-weight: bold;
    border-bottom: 1px dashed #e9eaec;
  }

  .order-log .log-cont {
    margin-top: 15px;
    color: #4395ff;
  }
}
</style>



